﻿<%@ Page Language="C#" AutoEventWireup="true" %>

<html>
<head id="Head1" runat="server">
	<title>开关</title>
	<style type="text/css">
	body{padding:0px;margin:0px;border:0px;}
	</style>
	
	<script language="javascript" type="text/javascript">
	<!--
	Handle = function(){}
	
	Handle.Button = null;
	Handle.GetController = function()
	{
		return parent.Controller;
	}
	
	Handle.Init = function()
	{
		Handle.Button = document.getElementById("HandleButton");
		Handle.OpenPanel();
	}
	
	Handle.OpenPanel = function()
	{
		var controller = Handle.GetController();
		if(Handle.Button && controller)
		{
			controller.OpenPanel();
			Handle.Button.className = "Handle_Close";
		}
	}
	
	Handle.ClosePanel = function()
	{
		var controller = Handle.GetController();
		if(Handle.Button && controller)
		{
			controller.ClosePanel();
			Handle.Button.className = "Handle_Open";
		}
	}
	
	Handle.MouseOver = function()
	{
		var controller = Handle.GetController();
		if(Handle.Button && controller)
		{
			if(controller.IsOpenPanel)
				Handle.Button.className = "Handle_Close_MouseOver";
			else
				Handle.Button.className = "Handle_Open_MouseOver";
		}
	}
	
	Handle.MouseOut = function()
	{
		var controller = Handle.GetController();
		if(Handle.Button && controller)
		{
			if(controller.IsOpenPanel)
				Handle.Button.className = "Handle_Close";
			else
				Handle.Button.className = "Handle_Open";
		}
	}
	
	Handle.Click = function()
	{
		var controller = Handle.GetController();
		if(controller)
		{
			if(controller.IsOpenPanel)
				Handle.ClosePanel();
			else
				Handle.OpenPanel();
		}
	}
	-->
	</script>
</head>
<body onload="Handle.Init();" class="MainBGColor">
<table width="7" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td id="HandleButton" onmouseover="Handle.MouseOver();" onmouseout="Handle.MouseOut();" onclick="Handle.Click();"></td></tr></table>
</body>
</html>